package com.ruoyi.project.remake.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.remake.mapper.RemakeCaseDetailsThridMapper;
import com.ruoyi.project.remake.domain.RemakeCaseDetailsThrid;
import com.ruoyi.project.remake.service.IRemakeCaseDetailsThridService;

/**
 * 今创病例基本信息Service业务层处理
 * 
 * @author 孙山伟
 * @date 2023-05-27
 */
@Service
public class RemakeCaseDetailsThridServiceImpl implements IRemakeCaseDetailsThridService 
{
    @Autowired
    private RemakeCaseDetailsThridMapper remakeCaseDetailsThridMapper;

    /**
     * 查询今创病例基本信息
     * 
     * @param id 今创病例基本信息ID
     * @return 今创病例基本信息
     */
    @Override
    public RemakeCaseDetailsThrid selectRemakeCaseDetailsThridById(Long id)
    {
        return remakeCaseDetailsThridMapper.selectRemakeCaseDetailsThridById(id);
    }

    /**
     * 查询今创病例基本信息列表
     * 
     * @param remakeCaseDetailsThrid 今创病例基本信息
     * @return 今创病例基本信息
     */
    @Override
    public List<RemakeCaseDetailsThrid> selectRemakeCaseDetailsThridList(RemakeCaseDetailsThrid remakeCaseDetailsThrid)
    {
        return remakeCaseDetailsThridMapper.selectRemakeCaseDetailsThridList(remakeCaseDetailsThrid);
    }

    /**
     * 新增今创病例基本信息
     * 
     * @param remakeCaseDetailsThrid 今创病例基本信息
     * @return 结果
     */
    @Override
    public int insertRemakeCaseDetailsThrid(RemakeCaseDetailsThrid remakeCaseDetailsThrid)
    {
        remakeCaseDetailsThrid.setCreateTime(DateUtils.getNowDate());
        return remakeCaseDetailsThridMapper.insertRemakeCaseDetailsThrid(remakeCaseDetailsThrid);
    }

    /**
     * 修改今创病例基本信息
     * 
     * @param remakeCaseDetailsThrid 今创病例基本信息
     * @return 结果
     */
    @Override
    public int updateRemakeCaseDetailsThrid(RemakeCaseDetailsThrid remakeCaseDetailsThrid)
    {
        remakeCaseDetailsThrid.setUpdateTime(DateUtils.getNowDate());
        return remakeCaseDetailsThridMapper.updateRemakeCaseDetailsThrid(remakeCaseDetailsThrid);
    }

    /**
     * 批量删除今创病例基本信息
     * 
     * @param ids 需要删除的今创病例基本信息ID
     * @return 结果
     */
    @Override
    public int deleteRemakeCaseDetailsThridByIds(Long[] ids)
    {
        return remakeCaseDetailsThridMapper.deleteRemakeCaseDetailsThridByIds(ids);
    }

    /**
     * 删除今创病例基本信息信息
     * 
     * @param id 今创病例基本信息ID
     * @return 结果
     */
    @Override
    public int deleteRemakeCaseDetailsThridById(Long id)
    {
        return remakeCaseDetailsThridMapper.deleteRemakeCaseDetailsThridById(id);
    }
}
